<?php
$id=$_GET['id'];
$row=sel_sql('dhdingdan','*',"id=".$id,2);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {
	color: #FFFFFF;
	font-weight: bold;
	font-size:14px;
	text-decoration:none;
}
.STYLE2 {
	color: #555555;
	font-weight: bold;
	font-size:14px;
	text-decoration:none;
}
-->
</style>
</head>

<body topmargin="5" leftmargin="0">
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="282" valign="top"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>
          <table cellspacing="0" width="980" height="207" style="border:1px  solid #DCEAF7;">
            <tr>
              <td height="30" colspan="2" bgcolor="E9F2FB" class="bigtext"><strong>&nbsp;<img src="../images/arrow.gif" width="16" height="22" align="absmiddle" /> 本商品为&nbsp;“<?=$fangshi[$row["fangshi"]]?>”&nbsp;方式</strong></td>
            </tr>
            <tr>
              <td width="980" colspan="2" valign="top"><table width="980" height="300" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td valign="top"><form id="form1" name="form1" method="post" action="admin.php?act=duihuan_ok">
                    <br />
                    <table width="720"  align="center" border=1 cellpadding=0 cellspacing=0
style="border-collapse: collapse" bordercolor="#dddddd">
                      <tr>
                        <td width="174" height="30" align="right" class="bigtext">交易用户：                          </td>
                        <td width="540" height="30" class="bigtext">&nbsp;<?php echo $row["ddusername"]; ?>
                          [ <a href="../mingxi.php?username=<?=urlencode($row["ddusername"])?>" class="link4">查看明细</a> ]　[ <a href="../sendmsg.php?user=<?=urlencode($row["ddusername"])?>" class="link4">发送站内信</a> ]</td>
                      </tr>
					   <tr>
                        <td height="30" align="right" class="bigtext">所需<?=$fangshi[$row["fangshi"]]?>：</td>
                        <td height="30" class="bigtext">&nbsp;<?php echo $row["spend"]; ?>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">兑换商品名：</td>
                        <td height="30" class="bigtext">&nbsp;<?php echo $row["name"]; ?></td>
                      </tr>
                       <tr>
                        <td height="30" align="right" class="bigtext">兑换人姓名：</td>
                        <td height="30" class="bigtext">&nbsp;<?php echo $row["tbusername"]; ?></td>
                      </tr>
					   <tr>
                        <td height="30" align="right" class="bigtext">兑换地址：</td>
                        <td height="30" class="bigtext">&nbsp;<?php echo $row["address"]; ?></td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱：</td>
                        <td height="30" class="bigtext">&nbsp;<?php echo $row["email"]; ?></td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">联系QQ：</td>
                        <td height="30" class="bigtext">&nbsp;<?php echo $row["qq"]; ?>&nbsp;&nbsp;<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $row["qq"]; ?>&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:<?php echo $row["qq"]; ?>:45" alt="点击这里给我发消息" title="点击这里给我发消息"></a></td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">联系电话：</td>
                        <td height="30" class="bigtext">&nbsp;<?php echo $row["mobile"]; ?></td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">兑换电脑IP：</td>
                        <td height="30" class="bigtext">&nbsp;<a href="http://www.ip138.com/ips.asp?ip=<?php echo $row["ip"]; ?>" target="_blank"><?php echo $row["ip"]; ?></a></td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">用户补充说明：</td>
                        <td height="30" class="bigtext">&nbsp;<?php echo $row["remarks"]; ?></td>
                      </tr>
                      <tr>
                        <td height="30" align="right" class="bigtext">兑换时间：</td>
                        <td height="30" class="bigtext">&nbsp;<?php echo $row["addtime"]; ?></td>
                      </tr>
					   <tr>
                        <td height="30" align="right" class="bigtext">当前状态：</td>
                        <td height="30" class="bigtext">&nbsp;<?=$status[$row['status']]?></td>
                      </tr>
					  
					   <tr>
                        <td height="50" align="center" class="bigtext">&nbsp;</td>
                        <td height="50" class="bigtext">&nbsp;
                        
                        <input name="id" type="hidden" value="<?php echo $row["id"]; ?>"  />
                        <input name="ddusername" type="hidden" value="<?php echo $row["ddusername"]; ?>" /> 
                        <input name="spend" type="hidden" value="<?php echo $row["spend"]; ?>" /> 
                        <input name="fangshi" type="hidden" value="<?php echo $row["fangshi"]; ?>" />                       
					   <?php if($row["status"]==0) {
						echo ("<input type=submit name=Submit2 value=确定兑换 />");
						}
						else
						{
							echo("<font color=#333333>不能再次提交！</font>");
						}
						?></td>
					   </tr>
                    </table>
                  </form>
                  </td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
      
    </table></td>
  </tr>
</table>
</body>
</html>